﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GRUPO_4.Dominio.Empresa>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>

     <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.CodEmpresa) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.CodEmpresa) %>
                <%: Html.ValidationMessageFor(model => Model.CodEmpresa) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.RazonSocial) %>
            </div>
               <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.RazonSocial) %>
                <%: Html.ValidationMessageFor(model => Model.RazonSocial) %>
            </div>

       <div class="editor-label">
                <%: Html.LabelFor(model => model.Ruc) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.Ruc) %>
                <%: Html.ValidationMessageFor(model => Model.Ruc) %>
            </div> 

            <div class="editor-label">
                <%: Html.LabelFor(model => model.telefono) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.telefono) %>
                <%: Html.ValidationMessageFor(model => Model.telefono) %>
            </div> 
                  
             <div class="editor-label">
                <%: Html.LabelFor(model => model.email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.email) %>
                <%: Html.ValidationMessageFor(model => Model.email) %>
            </div> 

            <div class="editor-label">
                <%: Html.LabelFor(model => model.clave) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.clave) %>
                <%: Html.ValidationMessageFor(model => Model.clave) %>
            </div> 

            <div class="editor-label">
                <%: Html.LabelFor(model => model.RubroEmpresa) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.RubroEmpresa) %>
                <%: Html.ValidationMessageFor(model => Model.RubroEmpresa) %>
            </div> 


            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar", "Index") %>
    </div>
</asp:Content>
